if(NOT DEFINED AI_INTEGRATION_VERSION)
    string(TIMESTAMP NCNN_VERSION "%Y%m%d")
endif()
set(AI_INTEGRATION_VERSION_MAJOR 1)
set(AI_INTEGRATION_VERSION_MINOR 0)
set(AI_INTEGRATION_VERSION_PATCH ${AI_INTEGRATION_VERSION})
set(AI_INTEGRATION_VERSION_STRING ${AI_INTEGRATION_VERSION_MAJOR}.${AI_INTEGRATION_VERSION_MINOR}.${AI_INTEGRATION_VERSION_PATCH})

message(STATUS "AI_INTEGRATION_VERSION_STRING = ${AI_INTEGRATION_VERSION_STRING}")

cmake_minimum_required(VERSION 2.8.12)

if(NOT CMAKE_BUILD_TYPE)
    set(CMAKE_BUILD_TYPE release CACHE STRING "Choose the type of build" FORCE)
endif()

if(NOT CMAKE_VERSION VERSION_LESS "3.15")
    # enable CMAKE_MSVC_RUNTIME_LIBRARY
    cmake_policy(SET CMP0091 NEW)
endif()

if(POLICY CMP0025)
    # reference from https://cmake.org/cmake/help/latest/policy/CMP0025.html
    cmake_policy(SET CMP0025 NEW)
endif()

project(ai_integration)

add_subdirectory(third_party/ncnn)
add_subdirectory(framework)
add_subdirectory(example/face_detection)